<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      div {
        width: 100px;
        height: 100px;
        background-color: orchid;
        margin: 0 auto;
      }
      img {
        width: 200px;
        height: 200px;
        display: block;
        margin-left: auto;
        margin-right: auto;
      }
      p {
        width: 300px;
        height: 30px;
        background-color: silver;
      }
    </style>
  </head>
  <body>
    <!-- 1.块标签 
      特点：独占一行    可以设置width、height
    -->
    <div></div>
    <p>哈哈哈哈哈哈哈哈</p>
    <h1>标题1</h1>
    <ul>
      <li>hkjsadbdbkdb</li>
      <li>shdjabdjbc</li>
    </ul>

    <!-- 2.内联标签
      特点：并排显示    不能设置width、height  设margin-top、margin-bottom没用
     -->
    <a href="#">123</a>
    <em>em斜体</em>
    <strong>strong加粗</strong>

    <br>
    <!-- 内联块标签 -->
    <input type="text" />
    <img src="images/123.jpg" />
    <button>btn</button>
  </body>
</html>
